# 基础镜像
#FROM java:8
FROM openjdk:8-jre
# author
MAINTAINER dc

#定义时区参数
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone



#设置环境变量
ENV LC_ALL zh_CN.utf8

# 挂载目录
VOLUME /home/dc
# 创建目录
RUN mkdir -p /home/dc
# 指定路径
WORKDIR /home/dc
# 复制jar文件到路径
COPY ./jar/dc-control-base-0.0.1-SNAPSHOT.jar /home/dc/dc-control-base-0.0.1-SNAPSHOT.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","dc-control-base-0.0.1-SNAPSHOT.jar","-Dspring.profiles.active=dev","-c"]